{*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2011 PrestaShop SA
*  @version  Release: $Revision: 8544 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{include file="$tpl_dir./breadcrumb.tpl"}

<!-- Left -->
<div id="dl_left_column">
	{$HOOK_LEFT_COLUMN}
	
	<div id="dl_product_sort">
	{include file="$tpl_dir./product-sort.tpl"}
	</div>
</div>
<!-- Left End -->
				
{include file="$tpl_dir./errors.tpl"}

{if isset($category)}
<div id="dl_cat_page">
	{if $category->id AND $category->active}
		<div id="dl_cat_name">
			<h1>
				{strip}
					{$category->name|escape:'htmlall':'UTF-8'}
					{$categoryNameComplement|escape:'htmlall':'UTF-8'}
					<!--<span class="category-product-count">-->
					<!--	{include file="$tpl_dir./category-count.tpl"}-->
					<!--</span>-->
				{/strip}
			</h1>
		</div>
		<div id="dl_cat_nav">
			<div id="dl_cat_viewall"><a href="" title="VIEW ALL">VIEW ALL</a></div>
			{include file="$tpl_dir./pagination.tpl"}
			<div class="dl_clear"></div>
		</div>
		<div class="dl_clear"></div>
		
		{if $products}
				{include file="$tpl_dir./product-list.tpl" products=$products}
			{elseif !isset($subcategories)}
				<p class="warning">{l s='There are no products in this category.'}</p>
			{/if}
	{elseif $category->id}
		<p class="warning">{l s='This category is currently unavailable.'}</p>
	{/if}
</div>
{/if}
<div lcass="dl_clear"></div>

<div class="dl_clear dl_grey_footer">&nbsp;</div>